home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 020 / arcsourc.arc / ARCDATA.MAC < prev    next >
Encoding:
Text File  |  1985-11-09  |  2.5 KB  |  61 lines

  1. $emit(off)
  2. $repeat(2,#
  3. $$define(c,$$ife(@0,1,@1,@2))
  4. $$define(h,$$ife(@0,2,@1,@2))
  5. $$define(e,$$h(extern ))
  6. $$emit($$c(on,to arc.h))#
  7. /*  ARC - Archive utility - $$c(ARCDATA,ARC Header)
  8.  
  9. $define(tag,$$segment(@1,$$index(@1,=)+1))#
  10. $define(version,Version $tag(
  11. TED_VERSION DB =2.09), created on $tag(
  12. TED_DATE DB =11/09/85) at $tag(
  13. TED_TIME DB =22:22:05))#
  14. $undefine(tag)#
  15.     $version
  16.  
  17. (C) COPYRIGHT 1985 by System Enhancement Associates; ALL RIGHTS RESERVED
  18.  
  19.     By:  Thom Henderson
  20.  
  21.     Description: $$h(
  22.          This is the header file for the ARC archive utility.  It defines
  23.          global parameters and the references to the external data.
  24. ,
  25.          This file defines the external data storage used by the ARC
  26.          archive utility.
  27. )
  28.  
  29.     Language:
  30.          Computer Innovations Optimizing C86
  31. */
  32. $c(#include <stdio.h>)
  33.  
  34. struct heads                           /* archive entry header format */
  35. {   char name[$$fnlen];                /* file name */
  36.     long size;                         /* size of file, in bytes */
  37.     unsigned int date;                 /* creation date */
  38.     unsigned int time;                 /* creation time */
  39.     int crc;                           /* cyclic redundancy check */
  40.     long length;                       /* true file length */
  41. }   ;
  42.  
  43. $$e()int keepbak$$c( = 0);             /* true if saving the old archive */
  44. $$e()int warn$$c( = 1);                /* true to print warnings */
  45. $$e()int note$$c( = 1);                /* true to print comments */
  46. $$e()int bose$$c( = 0);                /* true to be verbose */
  47. $$e()int nocomp$$c( = 0);              /* true to suppress compression */
  48. $$e()int kludge$$c( = 0);              /* kludge flag */
  49. $$e()char *arctemp$$c( = NULL);        /* arc temp file prefix */
  50.  
  51. $$e()char hdrver;                      /* header version */
  52.  
  53. $$e()FILE *arc;                        /* the old archive */
  54. $$e()FILE *new;                        /* the new archive */
  55. $$e()char arcname[$$strlen];           /* storage for archive name */
  56. $$e()char bakname[$$strlen];           /* storage for backup copy name */
  57. $$e()char newname[$$strlen];           /* storage for new archive name */
  58. $$e()unsigned int arcdate$$c( = 0);    /* archive date stamp */
  59. $$e()unsigned int arctime$$c( = 0);    /* archive time stamp */
  60. )#
  61.